﻿<%@ Page Language="c#" Codebehind="AddLinkman.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.Linkman.AddLinkman" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="pragma" content="no-cache" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Language" content="zh-cn" />
    <meta name="author" content="Herry" />
    <meta name="Copyright" content="Copyright (c) 2009 himm.cn" />
    <title>添加联系人</title>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <link rel="stylesheet" type="text/css" href="/css/other.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="/css/table.css" />
</head>
<body>
    <form id="AddLinkman" method="post" runat="server">
        <div class="m">
            <div class="path">
                <span class="right">选择联系人类别
                    <asp:DropDownList ID="ddl_LinkmanType" runat="server" AutoPostBack="True">
                        <asp:ListItem Value="staff">公司员工</asp:ListItem>
                        <asp:ListItem Value="client">客户联系人</asp:ListItem>
                        <asp:ListItem Value="custom">自定义</asp:ListItem>
                    </asp:DropDownList><asp:Button ID="btn_Back" runat="server" Text="返 回" CssClass="redbuttoncss"
                        CausesValidation="False"></asp:Button><asp:Button ID="btn_AddList" runat="server"
                            Text="添 加" CssClass="redbuttoncss"></asp:Button></span> <a href="/SubModule/UnitiveDocument/Desktop.aspx">
                                我的桌面</a> >> 我的联系人</div>
            <div class="con">
                <div class="tabnav">
                    <p class="tabnavhead">
                        <span class="active2 tnc"><a href="#">添加联系人</a></span>
                    </p>
                    
                    输入姓名：  <asp:TextBox id="Realname" runat="server" />
                    <input type="button" runat="server" value="查询" id="Button1" class="redButtonCss" onserverclick="Button1_ServerClick" />
                </div>
                <table id="tbl_Select" runat="server">
                    <tr>
                        <td class="none">
                            <asp:DataGrid ID="dgrd_List" runat="server" Width="100%" AutoGenerateColumns="False"
                                AllowPaging="True" Visible="False" BorderColor="#337FB2" BorderWidth="1px" CellPadding="3"
                                PageSize="15">
                                <AlternatingItemStyle BackColor="#E8F4FF"></AlternatingItemStyle>
                                <ItemStyle></ItemStyle>
                                <HeaderStyle ForeColor="#FFFFFF" BackColor="#337FB2"></HeaderStyle>
                                <Columns>
                                    <asp:TemplateColumn>
                                        <ItemTemplate>
                                            <asp:CheckBox runat="server"></asp:CheckBox>
                                        </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="真实姓名">
                                        <ItemTemplate>
                                            <%#  DataBinder.Eval(Container.DataItem,"Realname")%>
                                        </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="手机">
                                        <ItemTemplate>
                                            <%#  DataBinder.Eval(Container.DataItem,"Mobile")%>
                                        </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="年龄">
                                        <ItemTemplate>
                                            <%#  DataBinder.Eval(Container.DataItem,"Age")%>
                                        </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="性别">
                                        <ItemTemplate>
                                            <%#  DataBinder.Eval(Container.DataItem,"SexName")%>
                                        </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="Email">
                                        <ItemTemplate>
                                            <%#  DataBinder.Eval(Container.DataItem,"Email")%>
                                        </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="所在职位">
                                        <ItemTemplate>
                                            <%#  DataBinder.Eval(Container.DataItem,"Position_Name")%>
                                        </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="注册日期">
                                        <ItemTemplate>
                                            <%#  DataBinder.Eval(Container.DataItem,"RQ")%>
                                        </ItemTemplate>
                                    </asp:TemplateColumn>
                                </Columns>
                                <PagerStyle HorizontalAlign="Right" BackColor="#E8F4FF" Mode="NumericPages"></PagerStyle>
                            </asp:DataGrid>
                            <asp:DataGrid ID="dgrd_Linkman" runat="server" Width="100%" AutoGenerateColumns="False"
                                AllowPaging="True" Visible="False" BorderColor="#337FB2" BorderWidth="1px" CellPadding="3">
                                <AlternatingItemStyle BackColor="#E8F4FF"></AlternatingItemStyle>
                                <ItemStyle></ItemStyle>
                                <HeaderStyle ForeColor="#FFFFFF" BackColor="#337FB2"></HeaderStyle>
                                <Columns>
                                    <asp:TemplateColumn>
                                        <ItemTemplate>
                                            <asp:CheckBox runat="server" ID="Checkbox1"></asp:CheckBox>
                                        </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="姓名">
                                        <ItemTemplate>
                                            <%#  DataBinder.Eval(Container.DataItem,"Name")%>
                                        </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="手机">
                                        <ItemTemplate>
                                            <%#  DataBinder.Eval(Container.DataItem,"Mobile")%>
                                        </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="电话">
                                        <ItemTemplate>
                                            <%#  DataBinder.Eval(Container.DataItem,"Telephone")%>
                                        </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="Email">
                                        <ItemTemplate>
                                            <%#  DataBinder.Eval(Container.DataItem,"Email")%>
                                        </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="单位">
                                        <ItemTemplate>
                                            <%#  DataBinder.Eval(Container.DataItem,"UnitName")%>
                                        </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="职务">
                                        <ItemTemplate>
                                            <%#  DataBinder.Eval(Container.DataItem,"Position")%>
                                        </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="家庭住址">
                                        <ItemTemplate>
                                            <%#  DataBinder.Eval(Container.DataItem,"Address")%>
                                        </ItemTemplate>
                                    </asp:TemplateColumn>
                                </Columns>
                                <PagerStyle HorizontalAlign="Right" BackColor="#E8F4FF" Mode="NumericPages"></PagerStyle>
                            </asp:DataGrid></td>
                    </tr>
                </table>
                <table id="tbl_Custom" bordercolor="#337FB2" border="1" runat="server">
                    <tr>
                        <td style="width: 73px" bgcolor="#e8f4ff">
                            姓名</td>
                        <td class="tl">
                            <asp:TextBox ID="tbx_Name" runat="server" CssClass="inputcss"></asp:TextBox><asp:RequiredFieldValidator
                                ID="RequiredFieldValidator1" runat="server" ErrorMessage="不能为空" ControlToValidate="tbx_Name"
                                Display="Dynamic"></asp:RequiredFieldValidator></td>
                        <td bgcolor="#e8f4ff" style="width: 73px">
                            性别</td>
                        <td class="tl">
                            <select id="ddl_Gender" name="Select1" runat="server">
                                <option value="1" selected="selected">男</option>
                                <option value="0">女</option>
                            </select>
                        </td>
                        <td bgcolor="#e8f4ff" style="width: 73px">
                            年 龄</td>
                        <td class="tl">
                            <asp:TextBox ID="tbx_Age" runat="server" CssClass="inputcss" Width="56px"></asp:TextBox><asp:RangeValidator
                                ID="RangeValidator1" runat="server" Display="Dynamic" ControlToValidate="tbx_Age"
                                ErrorMessage="年龄错误" MinimumValue="1" MaximumValue="200" Type="Integer"></asp:RangeValidator></td>
                    </tr>
                    <tr>
                        <td bgcolor="#e8f4ff">
                            单位地址</td>
                        <td class="tl">
                            <asp:TextBox ID="tbx_UnitAddress" runat="server" CssClass="inputcss"></asp:TextBox></td>
                        <td bgcolor="#e8f4ff">
                            单位电话</td>
                        <td class="tl">
                            <asp:TextBox ID="tbx_UnitTelephone" runat="server" CssClass="inputcss"></asp:TextBox><asp:RegularExpressionValidator
                                ID="RegularExpressionValidator2" runat="server" ErrorMessage="输入数字" ControlToValidate="tbx_UnitTelephone"
                                Display="Dynamic" ValidationExpression="\d*"></asp:RegularExpressionValidator></td>
                        <td bgcolor="#e8f4ff">
                            单位邮编</td>
                        <td class="tl">
                            <asp:TextBox ID="tbx_UnitZip" runat="server" CssClass="inputcss" Width="57px"></asp:TextBox><asp:RegularExpressionValidator
                                ID="RegularExpressionValidator6" runat="server" ErrorMessage="邮编错误" ControlToValidate="tbx_UnitZip"
                                Display="Dynamic" ValidationExpression="\d{6}"></asp:RegularExpressionValidator></td>
                    </tr>
                    <tr>
                        <td bgcolor="#e8f4ff">
                            家庭地址</td>
                        <td class="tl">
                            <asp:TextBox ID="tbx_FamilyAddress" runat="server" CssClass="inputcss"></asp:TextBox></td>
                        <td bgcolor="#e8f4ff">
                            家庭电话</td>
                        <td class="tl">
                            <asp:TextBox ID="tbx_FamilyTelephone" runat="server" CssClass="inputcss"></asp:TextBox><asp:RegularExpressionValidator
                                ID="RegularExpressionValidator3" runat="server" ErrorMessage="输入数字" ControlToValidate="tbx_FamilyTelephone"
                                Display="Dynamic" ValidationExpression="\d*"></asp:RegularExpressionValidator></td>
                        <td bgcolor="#e8f4ff">
                            家庭邮编</td>
                        <td class="tl">
                            <asp:TextBox ID="tbx_FamilyZip" runat="server" CssClass="inputcss" Width="59px"></asp:TextBox><asp:RegularExpressionValidator
                                ID="RegularExpressionValidator7" runat="server" ErrorMessage="邮编错误" ControlToValidate="tbx_FamilyZip"
                                Display="Dynamic" ValidationExpression="\d{6}"></asp:RegularExpressionValidator></td>
                    </tr>
                    <tr>
                        <td bgcolor="#e8f4ff">
                            手机</td>
                        <td class="tl">
                            <asp:TextBox ID="tbx_Mobile" runat="server" CssClass="inputcss"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="输入数字"
                                ControlToValidate="tbx_Mobile" ValidationExpression="\d*" Display="Dynamic"></asp:RegularExpressionValidator></td>
                        <td bgcolor="#e8f4ff">
                            E-Mail</td>
                        <td class="tl" colspan="3">
                            <asp:TextBox ID="tbx_Email" runat="server" CssClass="inputcss"></asp:TextBox><asp:RegularExpressionValidator
                                ID="RegularExpressionValidator4" runat="server" ErrorMessage="格式错误" Display="Dynamic"
                                ControlToValidate="tbx_Email" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
                    </tr>
                    <tr>
                        <td bgcolor="#e8f4ff">
                            类别</td>
                        <td colspan="5">
                            <asp:DataList ID="dlt_Type" runat="server" RepeatDirection="Horizontal" RepeatColumns="10"
                                HorizontalAlign="Left">
                                <ItemTemplate>
                                    <asp:CheckBox runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Type") %>'
                                        EnableViewState="True"></asp:CheckBox>
                                </ItemTemplate>
                            </asp:DataList></td>
                    </tr>
                    <tr>
                        <td bgcolor="#e8f4ff">
                            备注</td>
                        <td valign="top" colspan="5">
                            <asp:TextBox ID="tbx_Memo" runat="server" Width="98%" Height="95px" TextMode="MultiLine"
                                CssClass="inputcss"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <asp:Button ID="btn_OK" runat="server" Text=" 确 认 " CssClass="buttoncss"></asp:Button></td>
                    </tr>
                </table>
            </div>
        </div>
    </form>
</body>
</html>
